#define CRTDBG_MAP_ALLOC
#include<iostream>
#include<string>
#include<list>
using namespace std;


int main() {
#if 0
	int array[] = { 1,2 ,3,4,5,6 };
	list<int> l1(array, array + 6);
	const list<int> l2(l1);
	auto it1 = l1.cbegin();
	*it1 = 10;
	auto it2 = l2.begin();
#endif
#if 0
	int array[] = { 1,2 ,3,4,5,6 };
	list<int> l1(array, array + 6);
	l1.assign(3, 1);
	l1.resize(5, 2);
	return 0;
#endif
	list<int> l1(3, 1);
	auto it = l1.begin();
	l1.insert(++it, 10);
	l1.insert(it, 2, 0);

}